import qiniu from "qiniu";

const accessKey = "_XAiDbZkL8X1U4_Sn5jUim9oGNMbafK2aYZbQDd3";
const secretKey = "vuWyS1b0NZgNTmk_er1J6bgzxIYGAZ1ZAYkPmj9Z";
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey);


const options = {
  scope: 'remeber-time',
};
const putPolicy = new qiniu.rs.PutPolicy(options);

export const getUploadToken = () => {
  return putPolicy.uploadToken(mac);
}
